<!-- 顶部统计 -->

<template>
  <div class="MaintainManage-TopCount">
    <EasyCard v-for="(bgImage, i) in info.bgList" :key="i" noScroll noPadding quar full>
      <div class="flex whole full" :style="{ backgroundImage: bgImage }">
        <div class="flex1 flexCC">
          <img :src="info.iconList[i]" />
        </div>

        <div class="flex4">
          <div>
            <b>{{ CORE.numStr(info.dataList[i]) || '-' }}</b>
            <span>{{ info.unitList[i] }}</span>
          </div>

          <span>{{ info.tipList[i] }}</span>
        </div>
      </div>
    </EasyCard>
  </div>
</template>

<script>
// ============================== 导入依赖 ============================== //

import CORE from '@/CORE'
import store from './store'

// ============================== 导出组件 ============================== //

export default {
  /**
   * 名称定义 (实际使用名称)
   */
  name: 'TopCount',

  /**
   * 混入列表 (配置选项合并)
   */
  mixins: [CORE.mixStore(store), CORE.mixApiMenu('顶部统计')],
}
</script>

<style lang="scss">
@import './index.scss';
</style>
